home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / c01lab1.zip / ADAWKBK / SOL3-3.ADA < prev    next >
Text File  |  1992-11-11  |  403b  |  24 lines

  1. -- Problem 3.3
  2. -- by Rick Conn
  3. with Text_IO;
  4. procedure Main is
  5.  
  6.   Inline : STRING (1..80);
  7.   Inlast : NATURAL;
  8.  
  9. begin
  10.  
  11.   for I in 1 .. 10 loop
  12.  
  13.     Text_IO.Put ("Enter String: ");
  14.     Text_IO.Get_Line (Inline, Inlast);
  15.  
  16.     if Inlast >= 4 and then Inline(1..4) = "EXIT" then
  17.       Text_IO.Put_Line ("Leaving Loop on EXIT Command");
  18.       exit;
  19.     end if;
  20.  
  21.   end loop;
  22.  
  23. end Main;
  24.